Now, the conditional jumps, because we need to
make decisions. Steps in a default workflow are executed in a linear manner. That is, they're executed in a particular order
without branching. Unless you add a switch, in which case the
switch statement breaks the natural linear order. This is an example of a switch step called
a conditional switch. It evaluates the expressions in the conditions and breaks
through another step, returning Friday or
weekend, in this example. If none of the conditions in the conditional switch match, the natural linear order
continues to the next step, returning its workweek
in this example. Much as you would
in programming, you can also raise an error in a workflow by using
the raise step, and then providing
contextual output for the error that
has been caught.